`
<template>
  <div class="share">
    <Header></Header>
    <div class="app-main">
      <div class="app-content">
        <div class="lf">
          <div class="title">
            《{{ detail.novel_name }}》 {{ detail.title }}
          </div>
          <div class="content" v-html="detail.content"></div>
        </div>
        <div class="rg">
          <img class="comment-bg" src="@/assets/images/writeBg.png" alt="" />
          <div class="comment">
            <div class="head">
              <span class="comment-title">评论</span>
              <span class="comment-write">
                <i class="el-icon-edit"></i> 写评论</span
              >
            </div>
            <div class="content">
              <img src="@/assets/images/null.png" alt="" />
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { getShareContent } from "@/api/share";
import Header from "@/components/Header";
export default {
  name: "share",
  components: {
    Header,
  },
  data() {
    return {
      detail: {
        title: "",
        content: "",
      },
      navList: ["产品介绍", "使用文档"],
    };
  },
  created() {
    this.getDetail();
  },
  methods: {
    getDetail() {
      const token = this.$route.params.token;
      getShareContent(token).then((res) => {
        this.detail = res;
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.share {
  background: #f2f4f8;
  min-height: 100vh;
}

.app-main {
  max-width: 1400px;
  margin: auto;
  padding: 0 40px;
}
.app-content {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  .lf {
    flex: 1;
    background: #ffffff;
    border-radius: 12px 12px 12px 12px;
    .title {
      font-weight: 500;
      font-size: 24px;
      color: #00011b;
      line-height: 28px;
      padding: 20px 24px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    .content {
      font-weight: 400;
      font-size: 16px;
      color: #00011b;
      line-height: 24px;
      padding: 16px 24px;
    }
  }
  .rg {
    width: 420px;
    margin-left: 16px;
    .comment-bg {
      width: 100%;
      margin-bottom: 16px;
    }
    .comment {
      background: #ffffff;
      border-radius: 12px 12px 12px 12px;
      .head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
        box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.08);
        .comment-title {
          font-weight: 500;
          font-size: 18px;
          color: #00011b;
        }
        .comment-write {
          font-weight: 500;
          font-size: 16px;
          color: #165deb;
        }
      }
      .content {
        padding: 250px 140px;
      }
    }
  }
}
</style>
